﻿// Copyright @ shch8.com All Rights Reserved At 2008-3-12
//开发：商创技术（www.shch8.com）望月狼
/*
·创建自定义事件。
  最多可以有5个自定参数为 obj1~obj5 的认意类型
 
参数：new createEvent(createEvent.RENEW,var)
      new createEvent(createEvent.RENEW,事件参数)

例：this.addEventListener(createEvent.RENEW,creEvent_fun);
function creEvent_fun(e:createEvent):void {
trace(e.obj1);
trace(e.obj2);
}

dispatchEvent(new createEvent(createEvent.RENEW,"obj1Txt","obj2Txt"));//加入事件流

*/
package com._public._events{
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.EventDispatcher;
	import flash.events.MouseEvent;
	public class createEvent extends Event {
		public static  const RENEW:String = "renew";
		private var _obj1:*;
		private var _obj2:*;
		private var _obj3:*;
		private var _obj4:*;
		private var _obj5:*;
		private var _eventFun:Function;
		public function createEvent(eventFun:String=null,obj1:*="",obj2:*="",obj3:*="",obj4:*="",obj5:*="") {
			super(eventFun);
			_obj1=obj1;
			_obj2=obj2;
			_obj3=obj3;
			_obj4=obj4;
			_obj5=obj5;
		}
		public function get obj1():* {
			return _obj1;
		}
		public function get obj2():* {
			return _obj2;
		}
		public function get obj3():* {
			return _obj3;
		}
		public function get obj4():* {
			return _obj4;
		}
		public function get obj5():* {
			return _obj5;
		}
	}
}